package mspbots.next.ticket.core.data.rules;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * mspbots.next.ticket.core.data.rules.RulesTemplateRequest
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/12/15
 */
@Data
@Validated
public class RulesTemplateRequest {

    private Integer id;

    @NotBlank(message = "Rule request params [name] not blank.")
    private String name;

    @NotNull(message = "Rule request params [params]  not null.")
    private JsonNode params;

    @NotBlank(message = "Rule request params [displayName] not blank.")
    private String displayName;

    private Boolean enable;
}
